package com.zhao.concretedecorator;

import com.zhao.component.FastFood;
import com.zhao.decorator.Garnish;

public class Egg extends Garnish {

    public Egg(String desc, float price, FastFood fastFood) {
        super(desc, price, fastFood);
    }

    @Override
    public float cost() {
        return getPrice() + getFastFood().cost();
    }
}
